package com.grsu.phonestation.service;

import java.util.List;

import com.grsu.phonestation.domain.User;

public interface UserService<U extends User> {

	void addUser(U user);

	void editUser(U user);

	void removeUser(int userId);

	U getUserById(int userId);

	List<U> listUsers();

	U loadUserByCredentials(String login, String password);
	
	U getUserByLogin(String login);
	
	U getUserByEmail(String email);

}
